package com.mico.example.springboot.redis.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
public class User implements Serializable {

    private Integer id;
    private String username;
    private String password;
    private List<Role> roles;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}